#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt
step = 1000
a = np.random.randint(-1,2,size=(2,step))

b = np.cumsum(a,axis=1)

plt.plot(b[0,:],b[1,:])
plt.show()